package com.hthy.futures.utils;

/**
 * 定义数字变量
 * Author:  Mr.bingley
 * Version:
 * Date:  2017/3/27
 */

public class Contant {
    // 1’ - 建仓‘2’ - 平仓
    public static String TRADE_NEW = "1";
    public static String TRADE_CLOSE = "2";

    // 单据类型‘1’ - 市价单 ’2’ - 限价单
    public static String TRADE_DATATYPE_MARKET = "1";
    public static String TRADE_DATATYPE_LIMIT = "2";


    //‘1’-  新建单‘2’ - 修改限价单‘3’ -（修改止损，获利价）‘4’ - 撤销单
    public static String TRADE_FLAG_NEW = "1";
    public static String TRADE_FLAG_UPDATE = "2";
    public static String TRADE_FLAG_UPDATE_VALUE = "3";
    public static String TRADE_FLAG_REVOKE = "4";


    // 对应三种操作
    public static int BILL_OP_UPDATE = 1;
    public static int BILL_OP_CLOSE = 2;
    public static int BILL_OP_DELETE = 3;


    //交易类型   ‘1’- buy ,‘2’ - sell ,‘3’ - buy limit(限价买入） ,‘4’ - buy stop（止损买入） ,‘5’ - sell limit（限价卖出） ,‘6’ - sell stop（止损卖出）
    public static String TRADE_BUY = "1";
    public static String TRADE_SELL = "2";
    public static String TRADE_BUY_LIMIT = "3";
    public static String TRADE_BUY_STOP = "4";
    public static String TRADE_SELL_LIMIT = "5";
    public static String TRADE_SELL_STOP = "6";


    // // 买卖方向    s代表卖 b买
    public static String TRADE_DIRECTION_SELL = "s";
    public static String TRADE_DIRECTION_BUY = "b";


    // 持仓单 0  挂单1
    public static int BILL_TAB_POSITION = 0;
    public static int BILL_TAB_PENDING_ORDER = 1;


    // 操作类型1帐户2代客下单3系统斩仓4结算锁仓斩仓
    public static String TRADE_OPER_ACCOUNT = "1";


    // tab 字段
    public static String isCanRequest = "isCanRequest";
    public static String id = "id";
    public static String title = "title";
    public static String time = "time";
    public static String timmer = "timeer";
}
